package umich.max.geolocation.featextract.icf;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

import max.nlp.dal.blog.blogger.BlogAuthorProfile;
import max.nlp.dal.blog.blogger.BloggerBlog;
import max.nlp.dal.blog.blogger.BloggerDB;
import max.nlp.dal.blog.blogger.BloggerPost;
import max.nlp.dal.blog.blogger.ParsedLocation;
import max.nlp.util.MapSorter;
import max.nlp.wrappers.ml.weka.FeatureSaver;
import max.nlp.wrappers.ml.weka.WekaFeatureBuilder;
import max.nlp.wrappers.ml.weka.WekaFeatureExtractor;
import max.nlp.wrappers.stanford.StanfordNLP;

import com.mongodb.DBCursor;

import edu.stanford.nlp.util.CoreMap;

public class ICFFeatureExtractor extends WekaFeatureExtractor<String, Double> {

	private static String prefix = "_icf";
	private HashMap<String, Double> icf = new HashMap<String, Double>();

	public HashMap<String, Double> getIcf() {
		return icf;
	}

	public void setIcf(HashMap<String, Double> icf) {
		this.icf = icf;
	}

	public ICFFeatureExtractor() {
		super(prefix);
		icf = ICFLoader.load("/home/max/workspace/geolocation/data/icfs/icfs-states3");


	}

	public static void main(String[] args) {
		ICFFeatureExtractor a = new ICFFeatureExtractor();
		HashMap<String, Double> icfstuff = a.getIcf();
		for (Entry<String, Double> e : icfstuff.entrySet()) {
			System.out.println(e);
		}
	}

	@Override
	public HashMap<String, Double> extractFeaturesForObject(Object item) {
		// TODO Auto-generated method stub
		return null;
	}

}
